<?php
require_once '../conf.php';
require_once PATH_TO_SOURCE.'/model/model.php';
require_once PATH_TO_SOURCE.'/controller/controller.php';



$url = $_GET['url'];

$articles = new articleMain();
$articlesList = $articles->getintroductionList();



?>


<div class="blog-page main grid-wrap">

		<header class="grid col-full">
			<hr>
			<p class="fleft">Blog Kalorie</p>
		</header>
		
				
		<section class="grid col-three-quarters mq2-col-two-thirds mq3-col-full">
				<?php 
				$n = count($articlesList);
				
				for ($i=0;$i<$n;$i++){
					$articlesList[$i]['introduction'] = strip_tags($articlesList[$i]['introduction']);
					//$articlesList[$i]['introduction'] = str_replace("</strong>", '', $articlesList[$i]['introduction']);
					
				?>
					<article class="post">
					<h2><a href="<?php echo $articlesList[$i]['url']; ?>" class="post-title"><?php echo $articlesList[$i]['title']; ?></a></h2>
									<div class="meta">
										<p>Napisane <span class="time">chwilowo puste</span> przez Kalorie .</p>
									</div>
									<div class="entry">
										<p><?php echo $articlesList[$i]['introduction']; ?>.</p>
									</div>
									<footer>
										<a href="<?php echo $articlesList[$i]['url']; ?>" class="more-link">Czytaj dalej ...</a>
									</footer>
								</article>
				<?php 
					}
				?>

			
		
		</section>


		
		
		
	</div> <!--main-->